<?php
class LinkPager extends CLinkPager {
	const CSS_HIDDEN_PAGE = 'disabled';
	const CSS_SELECTED_PAGE = 'active';
	
	public $header = '';
	
	public $prevPageLabel = '&lsaquo;';
	public $nextPageLabel = '&rsaquo;';
	
	public $firstPageLabel = '&laquo;';
	public $lastPageLabel = '&raquo;';
	
	/**
	 * 修改默认显示方式, 不要默认样式
	 * 
	 * @see CLinkPager::run()
	 */
	public function run() {
		$buttons = $this->createPageButtons ();
		if (empty ( $buttons ))
			return;
		echo $this->header;
		echo CHtml::tag ( 'ul', $this->htmlOptions, implode ( "\n", $buttons ) );
		echo $this->footer;
	}
}
?>